#include "FlashingAnimation.h"

FlashingAnimation::FlashingAnimation(frame_t n, delay_t show, delay_t hide,animid_t id ) :
	repetitions(n), hideDelay(hide), showDelay(show), Animation(id){}

void	FlashingAnimation::SetRepetitions(frame_t n) { repetitions = n; }
    
frame_t FlashingAnimation::GetRepetitions(void) const { return repetitions; }
    
void FlashingAnimation::SetHideDelay(delay_t d) { hideDelay = d; }
    
delay_t FlashingAnimation::GetHideDelay(void) const { return hideDelay; }
    
void FlashingAnimation::SetShowDelay(delay_t d) { showDelay = d; }
    
delay_t FlashingAnimation::GetShowDelay(void) const { return showDelay; }

Animation* FlashingAnimation::Clone(animid_t newId) const { 
	return new FlashingAnimation(repetitions, hideDelay, showDelay, newId); 
}
